package com.bgy.geek.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * (TbUserRole)表实体类
 *
 * @author makejava
 * @since 2021-10-22 11:23:43
 */
@SuppressWarnings("serial")
public class TbUserRole extends Model<TbUserRole> {
	//自增主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	//tb_user表id
	private Integer userId;
	//tb_role表id
	private Integer roleId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	/**
	 * 获取主键值
	 *
	 * @return 主键值
	 */
	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}
